import java.util.ArrayList;
import java.util.List;

public class BTest {
    public static void main(String[] args) {
        Administrator a1 = new Administrator();
        Student s1 = new Student();
        User u1 = new User();
        System.out.println(a1 instanceof User);
        System.out.println(s1 instanceof User);
        System.out.println(s1 instanceof HaveName);
        System.out.println(u1 instanceof User);
        System.out.println(u1 instanceof Conveyable);
        System.out.println(u1 instanceof HaveName);
        List<User> lis = new ArrayList<>();
        lis.add(new User());
        lis.add(new Administrator());
        lis.add(new Student());
        for (User item :
                lis) {
            System.out.println("=========================");
            System.out.println(item.getClass());
            System.out.println(item instanceof User);
            System.out.println(item instanceof Administrator);
            System.out.println(item instanceof Student);
        }
    }
}
